package com.cho3.module;

import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Nullable;

public class DeviceInfoModule extends ReactContextBaseJavaModule {
    private ReactApplicationContext mReactContext;
    public DeviceInfoModule(ReactApplicationContext reactContext) {
        super(reactContext);
        this.mReactContext = reactContext;
    }

    @Override
    public String getName() {
        return "DeviceInfo1";
    }

    @Nullable
    @Override
    public Map<String, Object> getConstants() {
        HashMap<String, Object> constants = new HashMap<>();
        constants.put("systemName", "Android");
        constants.put("systemVersion", "9.0");
        constants.put("defaultLanguage", "china");
        constants.put("appVersion", "1.0");
        return constants;
    }
}
